/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package astralmlprocessor;

/**
 *
 * @author age
 */
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
public class PuntoAstro {
    
    private Double jd;
    private Double mg;
    private Double er;
    private String comment;
    
    public PuntoAstro() {
        this.jd = 0.0;
        this.mg = 0.0;
        this.er = 0.0;
        this.comment = null;        
    }
    
    public PuntoAstro(Double jd, Double mg, Double er) {
        this.jd = jd;
        this.mg = mg;
        this.er = er;
        this.comment = null;
    }

    public PuntoAstro(Double jd, Double mg, Double er, String comment) {
        this.jd = jd;
        this.mg = mg;
        this.er = er;
        this.comment = comment;
    }
    
    public Double getEr() {
        return er;
    }

    public void setEr(Double er) {
        this.er = er;
    }

    public Double getJd() {
        return jd;
    }

    public void setJd(Double jd) {
        this.jd = jd;
    }

    public Double getMg() {
        return mg;
    }

    public void setMg(Double mg) {
        this.mg = mg;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }
 
    public String dibujar() {
        return jd.intValue() + "," + mg.intValue() + "," + er.intValue();
    } 
    
    @Override
    public String toString() {
        return "(" + jd + ", " + mg + ", " + er + ")";
    }
}
